package lock;

/**
 * @AUTHOR LYF
 * @DATE 2022/3/18
 * @VERSION 1.0
 * @DESC
 *
 */
public class SynchronizedDemo {
    static Object mutex;
    synchronized static void staticMethod(){// 锁住的静态类  Sy..class
    }
    synchronized void commonMethod(){
    }
    public static void main(String[] args) {
        synchronized (mutex){
        }
    }
}
